package com.ddd.domain.model.sales;


import com.ddd.domain.share.Entity;
import com.ddd.domain.share.TrackingId;

import java.util.Objects;

/**
 * 销售的主单据
 */
public class SalesDetailEntity implements Entity {

    private TrackingId trackingId;

    private SalesProductValueObject salesProductValueObject;

    public SalesDetailEntity(TrackingId trackingId, SalesProductValueObject salesProductValueObject) {
        if (Objects.isNull(salesProductValueObject)){
            throw new RuntimeException("");
        }
        this.trackingId = trackingId;
        this.salesProductValueObject = salesProductValueObject;
    }

    @Override
    public boolean sameIdentityAs(Object other) {
        return false;
    }
}
